﻿using System;
using System.Collections.Generic;
using System.Data;
using Spring.Data;

namespace TeamTasker.Server.DataAccess.Support
{
    public class IdListResultSetExtractor : IResultSetExtractor
    {
        public object ExtractData(IDataReader reader)
        {
            IList<long> result = new List<long>();
            while (reader.Read())
            {
                result.Add(reader.GetInt64(0));
            }
            return result;
        }
    }
}
